package  
{
	import flash.display.MovieClip;
	import flash.utils.Dictionary;
	import flash.utils.getDefinitionByName;
	import flash.utils.getQualifiedClassName;
	/**
	 * Library containing all the MovieBMPD
	 * @author Lorenzo Nuvoletta
	 */
	public class LibraryMovieBMPD 
	{		
		public static var movieBMPDS:Dictionary = new Dictionary();
		
		public static function checkExistingClass(mc:MovieClip):Dictionary {
			var _class:Class =  getClass(mc);
			if (movieBMPDS[_class]) {
				return movieBMPDS[_class];
			}
			else return null;
		}	
		
		public static function getClass(mc:MovieClip):Class {
			return  Class(getDefinitionByName(getQualifiedClassName(mc)));			
		}		
	}

}